Calculation of Total Elongation of a Bar